package com.prig.base.entity;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

@Embeddable
public class AdminRoleRelationId implements Serializable {
    @Column(nullable = false)
    private long adminId;
    @Column(nullable = false)
    private long roleId;

    public AdminRoleRelationId() {
    }

    public AdminRoleRelationId(long adminId, long roleId) {
        this.adminId = adminId;
        this.roleId = roleId;
    }

    public long getAdminId() {
        return adminId;
    }

    public void setAdminId(long adminId) {
        this.adminId = adminId;
    }

    public long getRoleId() {
        return roleId;
    }

    public void setRoleId(long roleId) {
        this.roleId = roleId;
    }
}
